const { resolve } = require('path');
// const HtmlWebpackPlugin = require('html-webpack-plugin');
// const { CleanWebpackPlugin }= require('clean-webpack-plugin');
const MdToHtml = require('./plugins/md-to-html/index.js')

module.exports = {
	mode: "development",
	entry: {
		index: "./src/index.js"
	},
	output: {
		filename: '[name].bundle.js',
		path: resolve(__dirname, 'dist')
	},
	
	devServer: {
		open: true,
		contentBase: './'
	},
	
	plugins: [
		new MdToHtml({
			template: resolve(__dirname,'test.md'),
			filename: 'myHtml.html'
		})
	]
}